#include <iostream>
#include "PollServer.hpp"

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        LOG(FATAL) << "参数错误，请正确传参";
        exit(USAGE_ERR);
    }
    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<PollServer> ssptr = std::make_unique<PollServer>(port);
    ssptr->Start();
    sleep(10);
    return 0;
}